// index.js

Page({
  data: {
    message: "你好张三",
    movies: [
      "大话西游",
      "少年派",
      "哈哈哈"
    ],
    counter: 0
  },

  changeMessage: function() {
    this.setData({ message: "Hello World" });
  },

  increment: function() {
    this.setData({ counter: this.data.counter + 1 });
  },

  decrement: function() {
    this.setData({ counter: this.data.counter - 1 });
  }
})
